Skip to content

Commit

Permalink
Fixes missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszlenart committed Nov 24, 2024
1 parent 4026a72 commit fb3b47f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import com.intellij.framework.detection.FacetBasedFrameworkDetector;
import com.intellij.framework.detection.FileContentPattern;
import com.intellij.ide.highlighter.XmlFileType;
import com.intellij.javaee.web.WebUtilImpl;
import com.intellij.openapi.fileTypes.FileType;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.patterns.ElementPattern;
Expand All @@ -28,6 +27,7 @@
import com.intellij.util.indexing.FileContent;
import org.jetbrains.annotations.NotNull;

import java.util.List;
import java.util.Set;

/**
Expand Down Expand Up @@ -63,6 +63,7 @@ public ElementPattern<FileContent> createSuitableFilePattern() {
public boolean isSuitableUnderlyingFacetConfiguration(final FacetConfiguration underlying,
final StrutsFacetConfiguration configuration,
final Set<? extends VirtualFile> files) {
return WebUtilImpl.isWebFacetConfigurationContainingFiles(underlying, files);
List<String> names = files.stream().map(VirtualFile::getName).toList();
return configuration.getFileSets().stream().anyMatch(file -> names.contains(file.getName()));
}
}

0 comments on commit fb3b47f

Please sign in to comment.