Use VirtualFileFinder.SERVICE in InlineCodegenUtil
This commit is contained in:
@@ -120,13 +120,13 @@ public class InlineCodegenUtil {
|
|||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public static VirtualFile findVirtualFileWithHeader(@NotNull Project project, @NotNull FqName containerFqName) {
|
public static VirtualFile findVirtualFileWithHeader(@NotNull Project project, @NotNull FqName containerFqName) {
|
||||||
VirtualFileFinder fileFinder = ServiceManager.getService(project, VirtualFileFinder.class);
|
VirtualFileFinder fileFinder = VirtualFileFinder.SERVICE.getInstance(project);
|
||||||
return fileFinder.findVirtualFileWithHeader(containerFqName);
|
return fileFinder.findVirtualFileWithHeader(containerFqName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public static VirtualFile findVirtualFile(@NotNull Project project, @NotNull String internalName) {
|
public static VirtualFile findVirtualFile(@NotNull Project project, @NotNull String internalName) {
|
||||||
VirtualFileFinder fileFinder = ServiceManager.getService(project, VirtualFileFinder.class);
|
VirtualFileFinder fileFinder = VirtualFileFinder.SERVICE.getInstance(project);
|
||||||
return fileFinder.findVirtualFile(internalName);
|
return fileFinder.findVirtualFile(internalName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user